package com.kxmall.market.data.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author kaixin
 * @version 1.0
 * @date 2020/2/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("kxmall_stock")
public class StockDO extends SuperDO{

    /**
     * 商品id
     */
    @TableField("spu_id")
    @Excel(name = "商品ID（必填）", orderNum = "1", width = 15)
    private Long spuId;

    /**
     * 商品规格id
     */
    @TableField("sku_id")
    @Excel(name = "商品规格ID（必填）", orderNum = "2", width = 25)
    private Long skuId;


    /**
     * 前置仓id
     */
    @TableField("storage_id")
    @Excel(name = "前置仓ID（必填）", orderNum = "3", width = 20)
    private Long storageId;

    /**
     * 销售状态
     */
    @Excel(name = "销售状态（必填）", orderNum = "4", width = 20)
    private Integer status;


    /**
     * 库存
     */
    @Excel(name = "库存（必填）", orderNum = "5", width = 15)
    private Long stock;


    /**
     * 销售量
     */
    @Excel(name = "销售量（必填）", orderNum = "1", width = 15)
    private Long sales;

    /**
     * 冻结库存
     */
    @Excel(name = "冻结库存（必填）", orderNum = "1", width = 20)
    @TableField("frezz_stock")
    private Long frezzStock;

    /**
     * 当前售价
     */
    @Excel(name = "当前售价（必填）", orderNum = "1", width = 20)
    private Integer price;

    /**
     * 预警量
     */
    @TableField("warning_num")
    private Integer warningNum;


}
